home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
install
/
mkpkg-1.000
/
mkpkg-1
/
mkpkg
/
README
< prev
Wrap
Text File
|
1994-05-29
|
2KB
|
70 lines
mkpkg
Package Tool Make Installation Utility
Version 1.0
May, 1994
Copyright (C) 1994 Esonque Systems
Author: Andrew Davison
----------------------------------------------------------------------
INTRODUCTION
mkpkg is a pair of scripts which will create a pkgtool style description
of any package which you might normally install using a "make install"
command. Hence your "package" can be removed using the pkgtool program
provided with the SlackWare Linux distribution.
INSTALLATION
Just put the mkpkg and pkginstall scripts somewhere in your path.
USAGE
Before you begin, you'll have to change the toplevel Makefile of the
package you're installing. Most Makefiles will have a line like...
INSTALL = install -c
You will need to change this to
INSTALL = pkginstall install -c
Note that if you need to change the install program which is to be used,
just change the arguments to pkginstall.
Now, instead of typing "make install", run mkpkg. You'll be asked
for a name for the package, then a short description. After entering these
the mkpkg script invokes the install target at the current directory level.
WHAT DOES IT DO ?
mkpkg just creates a package description file with a standard header
which names and describes the package.
pkginstall appends the name of any file "installed" to that description.
The destination is assumed to be the last parameter to the "install"
program. If this is a directory, it appends the second last parameter (assumed
to be the source filename) to the destination name.
Lastly is moves the new package description into /var/adm/packages. If a
package already exists of the desired name, the old package description will
be backed up as "<package_bame>.bak"
COMMENTS/SUGGESTIONS
Send comments of suggestions to the author at
davison@cs.monash.edu.au
- A. Davison
- May, 1994